package com.heking.zplayer.qlyopen;

import com.cmcc.qlyopensdk.vo.response.CameraSettingInfo;

import java.io.Serializable;

import androidx.annotation.Keep;


/**
 * @Author: zhoug
 * @Date: 2024-11-06
 * @Description:
 */
@Keep
public class QlyCameraSetting implements Serializable {
    private String appId;
    private String deviceId;
    private String deviceName;
    private String deviceImei;
    private int deviceSwitch;
    private int deviceStatus;
    private long createTime;
    private long modifyTime;
    private String camModelName;
    private String storeId;
    private String storeName;
    private int hdVideo;
    private int volumeMute;
    private int statusLight;
    private int nightVision;
    private String deviceLongitude;
    private String deviceLatitude;
    private String deviceAddress;
    private boolean hasPackage;
    private int cameraImageRotate;
    private int soundSensitivity;
    private int motionSensitivity;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceImei() {
        return deviceImei;
    }

    public void setDeviceImei(String deviceImei) {
        this.deviceImei = deviceImei;
    }

    public int getDeviceSwitch() {
        return deviceSwitch;
    }

    public void setDeviceSwitch(int deviceSwitch) {
        this.deviceSwitch = deviceSwitch;
    }

    public int getDeviceStatus() {
        return deviceStatus;
    }

    public void setDeviceStatus(int deviceStatus) {
        this.deviceStatus = deviceStatus;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(long modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getCamModelName() {
        return camModelName;
    }

    public void setCamModelName(String camModelName) {
        this.camModelName = camModelName;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public int getHdVideo() {
        return hdVideo;
    }

    public void setHdVideo(int hdVideo) {
        this.hdVideo = hdVideo;
    }

    public int getVolumeMute() {
        return volumeMute;
    }

    public void setVolumeMute(int volumeMute) {
        this.volumeMute = volumeMute;
    }

    public int getStatusLight() {
        return statusLight;
    }

    public void setStatusLight(int statusLight) {
        this.statusLight = statusLight;
    }

    public int getNightVision() {
        return nightVision;
    }

    public void setNightVision(int nightVision) {
        this.nightVision = nightVision;
    }

    public String getDeviceLongitude() {
        return deviceLongitude;
    }

    public void setDeviceLongitude(String deviceLongitude) {
        this.deviceLongitude = deviceLongitude;
    }

    public String getDeviceLatitude() {
        return deviceLatitude;
    }

    public void setDeviceLatitude(String deviceLatitude) {
        this.deviceLatitude = deviceLatitude;
    }

    public String getDeviceAddress() {
        return deviceAddress;
    }

    public void setDeviceAddress(String deviceAddress) {
        this.deviceAddress = deviceAddress;
    }

    public boolean isHasPackage() {
        return hasPackage;
    }

    public void setHasPackage(boolean hasPackage) {
        this.hasPackage = hasPackage;
    }

    public int getCameraImageRotate() {
        return cameraImageRotate;
    }

    public void setCameraImageRotate(int cameraImageRotate) {
        this.cameraImageRotate = cameraImageRotate;
    }

    public int getSoundSensitivity() {
        return soundSensitivity;
    }

    public void setSoundSensitivity(int soundSensitivity) {
        this.soundSensitivity = soundSensitivity;
    }

    public int getMotionSensitivity() {
        return motionSensitivity;
    }

    public void setMotionSensitivity(int motionSensitivity) {
        this.motionSensitivity = motionSensitivity;
    }

    public static QlyCameraSetting create(CameraSettingInfo info) {
        QlyCameraSetting qlyCameraSetting = null;
        if (info != null) {
            qlyCameraSetting = new QlyCameraSetting();
            qlyCameraSetting.setAppId(info.getAppId());
            qlyCameraSetting.setDeviceId(info.getDeviceId());
            qlyCameraSetting.setDeviceName(info.getDeviceName());
            qlyCameraSetting.setDeviceImei(info.getDeviceImei());
            qlyCameraSetting.setDeviceSwitch(info.getDeviceSwitch());
            qlyCameraSetting.setDeviceStatus(info.getDeviceStatus());
            qlyCameraSetting.setCreateTime(info.getCreateTime());
            qlyCameraSetting.setModifyTime(info.getModifyTime());
            qlyCameraSetting.setCamModelName(info.getCamModelName());
            qlyCameraSetting.setStoreId(info.getStoreId());
            qlyCameraSetting.setStoreName(info.getStoreName());
            qlyCameraSetting.setHdVideo(info.getHdVideo());
            qlyCameraSetting.setVolumeMute(info.getVolumeMute());
            qlyCameraSetting.setStatusLight(info.getStatusLight());
            qlyCameraSetting.setNightVision(info.getNightVision());
            qlyCameraSetting.setDeviceLongitude(info.getDeviceLongitude());
            qlyCameraSetting.setDeviceLatitude(info.getDeviceLatitude());
            qlyCameraSetting.setDeviceAddress(info.getDeviceAddress());
            qlyCameraSetting.setCameraImageRotate(info.getCameraImageRotate());
            qlyCameraSetting.setSoundSensitivity(info.getSoundSensitivity());
            qlyCameraSetting.setMotionSensitivity(info.getMotionSensitivity());

        }
        return qlyCameraSetting;
    }

}
